Skip to main content

Token Liquidity

Queries the total amount of liquidity available for the specified token.

query Token_liquidity($token: String!) {
token {
token_liquidity(token: $token) {
token
total_liquidity
total_volume
}
}
}

Example

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Token_liquidity($token: String!) {\n  token {\n    token_liquidity(token: $token) {\n      token\n      total_liquidity\n      total_volume\n    }\n  }\n}","variables":{"token":"usdt"}}'

Open in Playground

Arguments

ArgumentTypeDescription
tokenStringThe token ID of the token to get the liquidity for.

Return Fields

FieldTypeDescription
tokenStringThe token Id.
total_liquidityStringThe total liquidity of the token.
total_volumeStringThe total trading volume for the token.